/*
 * protocoll.h
 *
 *  Created on: 05.12.2013
 *      Author: Strohmi
 */

#ifndef PROTOCOLL_H_
#define PROTOCOLL_H_

typedef enum {
	HEAD = 0,
	MSB,
	SB3,
	SB2,
	LSB,
	MSG_LENGTH				// has to be the last one
} MESSAGE;

typedef enum {
	COM = 0,
	SENSOR_DESCRIPTION,
	MSG_UINT8,
	MSG_UINT16,
	MSG_UINT32,
	MSG_INT8,
	MSG_INT16,
	MSG_INT32,
	MSG_FLOAT,
	ERROR
} MESSAGE_TYPE;

typedef enum {
	UNDEFINED = 0,
	BATTERY,
	VOLTAGE,
	TEMPRATURE,
	ACCELERATION,
	GYROSCOPE,
	MAGNETOMETER,
	IMU,
	PRESSURE,
	ENCODER,
	STRAINGAGES,
	BRIGHTNESS,
	AIRPRESSURE,
	VELOCITY,
	POSITION,
	ANGLE
} SENSOR_TYPE;

typedef enum {
	UINT8 = 0,
	UINT16,
	UINT32,
	INT8,
	INT16,
	INT32,
	FLOAT
} VALUE_TYPE;

typedef enum {
	ACK = 0,
	PAIRING,
	REQUEST_VALUE,
	NACK
} COM_TYPE;

#endif /* PROTOCOLL_H_ */
